﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace AMM.Model.Store {
    public class ProcurementOrderViewModel : BaseViewModel {
        [Description("采购单号")]
        public string Code { get; set; }
        [Description("供应商编号")]
        public string VendorCode { get; set; }
        [Description("供应商简称")]
        public string VendorName { get; set; }
        [Description("订单状态")]
        public string OrderStatus { get; set; }
        [Description("审核人")]
        public string AuditedBy { get; set; }
        [Description("审核时间")]
        public DateTime? AuditedDatetime { get; set; }
        [Description("是否打印")]
        public bool IsPrinted { get; set; }
        [Description("打印时间")]
        public DateTime? PrintedDatetime { get; set; }
    }

    public class MidProcurementOrder : BaseModel {
        public int ProduceConductId { get; set; }
        public string ProduceConductCode { get; set; }
        public int? VendorId { get; set; }
        public int? MaterialId { get; set; }
        public int? SourceId { get; set; }
        public int? ProcurementOrderId { get; set; }
        public decimal? Quantity { get; set; }
        public DateTime? DeliveryDate { get; set; }
        public decimal? Price { get; set; }
        public decimal? Total { get; set; }
        public string ErrorMsg { get; set; }
        public bool IsValid { get; set; }

        public List<Vendor> Vendors { get; set; }
    }

}
